package com.wingscode.modules.common.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wingscode.common.utils.PageUtils;
import com.wingscode.common.utils.Query;
import com.wingscode.modules.common.dao.SecurityCodeDao;
import com.wingscode.modules.common.entity.SecurityCodeEntity;
import com.wingscode.modules.common.service.SecurityCodeService;

import org.springframework.stereotype.Service;

import java.util.Map;


@Service("securityCodeService")
public class SecurityCodeServiceImpl extends ServiceImpl<SecurityCodeDao, SecurityCodeEntity> implements SecurityCodeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SecurityCodeEntity> page = this.page(
                new Query<SecurityCodeEntity>().getPage(params),
                new QueryWrapper<SecurityCodeEntity>()
        );

        return new PageUtils(page);
    }

}
